package com.example.vuecms.entity;

import java.util.Date;

public class News {
    private int id;
    private String title;
    private Date add_time;
    private int click;
    private String img_url;
    private String content;

    public News() {
    }

    public News(int id, String title, Date add_time, int click, String img_url) {
        this.id = id;
        this.title = title;
        this.add_time = add_time;
        this.click = click;
        this.img_url = img_url;
    }

    public News(int id, String title, Date add_time, int click, String img_url, String content) {
        this.id = id;
        this.title = title;
        this.add_time = add_time;
        this.click = click;
        this.img_url = img_url;
        this.content = content;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Date getAdd_time() {
        return add_time;
    }

    public void setAdd_time(Date add_time) {
        this.add_time = add_time;
    }

    public int getClick() {
        return click;
    }

    public void setClick(int click) {
        this.click = click;
    }

    public String getImg_url() {
        return img_url;
    }

    public void setImg_url(String img_url) {
        this.img_url = img_url;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }
}


